--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 5b81f24c376f78cf50f38cad995b32fac69d4bdc
Parents : 2e81996
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2026-04-23T04:56:05-05:00
refactor(codebase): format
Changes
3 files changed, 17 insertions(+), 8 deletions(-)
Diff
diff --git a/meshchatx/src/frontend/components/nomadnetwork/NomadNetworkPage.vue b/meshchatx/src/frontend/components/nomadnetwork/NomadNetworkPage.vue
index 0aa93236..6887e2de 100644
--- a/meshchatx/src/frontend/components/nomadnetwork/NomadNetworkPage.vue
+++ b/meshchatx/src/frontend/components/nomadnetwork/NomadNetworkPage.vue
@@ -1626,8 +1626,7 @@ export default {
console.log(fieldData);
- const httpHref =
- typeof url === "string" ? LinkUtils.httpUrlHrefOrNull(url.trim()) : null;
+ const httpHref = typeof url === "string" ? LinkUtils.httpUrlHrefOrNull(url.trim()) : null;
if (httpHref) {
window.open(httpHref, "_blank", "noopener,noreferrer");
return;
diff --git a/tests/backend/test_web_audio_bridge_hypothesis.py b/tests/backend/test_web_audio_bridge_hypothesis.py
index 2a2e3489..3ec84001 100644
--- a/tests/backend/test_web_audio_bridge_hypothesis.py
+++ b/tests/backend/test_web_audio_bridge_hypothesis.py
@@ -78,9 +78,17 @@ def test_web_audio_sink_numpy_frame_never_propagates(values, shape):
if shape == "empty":
arr = np.zeros((0, 1), dtype=np.float32)
elif shape == "row":
- arr = np.array(values, dtype=np.float32).reshape(1, -1) if values else np.zeros((1, 0), dtype=np.float32)
+ arr = (
+ np.array(values, dtype=np.float32).reshape(1, -1)
+ if values
+ else np.zeros((1, 0), dtype=np.float32)
+ )
else:
- arr = np.array(values, dtype=np.float32).reshape(-1, 1) if values else np.zeros((0, 1), dtype=np.float32)
+ arr = (
+ np.array(values, dtype=np.float32).reshape(-1, 1)
+ if values
+ else np.zeros((0, 1), dtype=np.float32)
+ )
with patch("meshchatx.src.backend.web_audio_bridge.RNS.log"):
sink.handle_frame(arr, None)
@@ -120,7 +128,11 @@ async def test_web_audio_sink_running_loop_numpy_never_propagates(values):
sent.append(data)
sink = WebAudioSink(asyncio.get_running_loop(), _send_bytes)
- arr = np.array(values, dtype=np.float32).reshape(-1, 1) if values else np.zeros((0, 1), dtype=np.float32)
+ arr = (
+ np.array(values, dtype=np.float32).reshape(-1, 1)
+ if values
+ else np.zeros((0, 1), dtype=np.float32)
+ )
with patch("meshchatx.src.backend.web_audio_bridge.RNS.log"):
sink.handle_frame(arr, None)
await asyncio.sleep(0.05)
diff --git a/tests/frontend/LinkUtils.test.js b/tests/frontend/LinkUtils.test.js
index 10ccdef2..792da3ca 100644
--- a/tests/frontend/LinkUtils.test.js
+++ b/tests/frontend/LinkUtils.test.js
@@ -166,9 +166,7 @@ describe("LinkUtils.js", () => {
describe("httpUrlHrefOrNull", () => {
it("returns canonical https href", () => {
- expect(LinkUtils.httpUrlHrefOrNull("https://example.com/path")).toBe(
- "https://example.com/path"
- );
+ expect(LinkUtils.httpUrlHrefOrNull("https://example.com/path")).toBe("https://example.com/path");
});
it("returns null for javascript: payloads that start with https-looking junk", () => {
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────